package com.haizhi.crm.biz.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haizhi.crm.common.model.BaseDo;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


/**
 * Created by yangyijun on 2018/5/16.
 */
@Data
@Entity
@Table(name = "tb_visit_record" )
public class VisitRecordDo extends BaseDo {

    @Column(name = "user_id" )
    Long userId;

    @Column(name = "product_key" )
    String productKey;

    @Column(name = "inner_event_key" )
    String innerEventKey;

    @Column(name = "outer_event_key" )
    String outerEventKey;

    @Column(name = "customer_key" )
    String customerKey;

    @Column(name = "title" )
    String title;

    @Column(name = "address" )
    String address;

    @Column(name = "record_desc" )
    String recordDesc;

    @Column(name = "visit_time_start" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8" )
    Date visitTimeStart;

    @Column(name = "visit_time_end" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8" )
    Date visitTimeEnd;

    @Column(name = "visitor_ids" )
    String visitorIds;

    @Column(name = "object_key" )
    String objectKey;

    @Column(name = "visit_record_id" )
    Long visitRecordId;

    @Column(name = "receiver" )
    String receiver;
}
